#!/bin/bash
echo get PIOA$1
str=`sudo /home/pi/usb2wireless/u2w -remote -gio -port pioa -pin $1`
if grep -q "no response" <<< $str ; then
	exit 7
fi

if grep -q "LOW" <<< $str ; then
	exit 10;
fi

if grep -1 "HIGH" <<< $str ; then
	exit 11;
fi
